﻿using Microsoft.AspNetCore.Builder;
using Nacos.AspNetCore.V2;

namespace XYS.Service.Core;

/// <summary>
/// 动作集合
/// </summary>
public static class OnAppBuilderAction
{
    /// <summary>
    /// 配置中心 配置前
    /// </summary>
    public static Action<WebApplicationBuilder, NacosAspNetOptions> ConfigurationCenteringAction { get; set; }
    /// <summary>
    /// 配置中心 配置完成
    /// </summary>
    public static Action<WebApplicationBuilder, NacosAspNetOptions> ConfigurationCenteredAction { get; set; }

    /// <summary>
    /// swagger 配置前
    /// </summary>
    public static Action<WebApplicationBuilder> SwaggeringAction { get; set; }
    /// <summary>
    /// swagger 配置完成
    /// </summary>
    public static Action<WebApplicationBuilder> SwaggeredAction { get; set; }
}
